package club.lovety.springcloud.microservice.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("config")
public class ConfigController {

//    @Value("${user.username}")
    private String usernane;

    @RequestMapping("index")
    public Object index(){
        return "第一个分布式配置文件,你的名称: "+ usernane;
    }


}
